Component({
  properties: {
    goods_desc: {
      type: Object
    }
  },

  data: {
    base_url: "https://vip.join.ink/"
  },


  /**
   * 组件的方法列表
   */
  methods: {
    go_goods_info(e) {
      let id = e.currentTarget.dataset.id
      wx.navigateTo({
        url: '/pages/goods_info/goods_info?' + id,
      })
    },
    cart_reduce(e){
      console.log("减少");
      this.triggerEvent("goods_dec",e)
    },
    crat_plus(e){
      console.log("增加购物车");
      this.triggerEvent("goods_add",e)
    }
  },
})